package com.neiquan.backstage.pub.bsc.dao.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.neiquan.backstage.core.PO;

@Entity
@Table
public class Province extends PO {
	@Id
	@Column(unique = true, nullable = false)
	private String code;
	private String name;

	@Override
	public Serializable getId() {
		return code;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
